#include <stdio.h>
#include "SeqStack.h"

int main() {
    SeqStack S;
    int n, d;
    scanf("%d", &n);
    StackInitiate(&S);
    while (n) {
        StackPush(&S, n % 2);
        n = n / 2;
    }
    while (StackNotEmpty(S) == 1) {
        StackPop(&S, &d);
        printf("%d", d);
    }
    printf("\n");
    return 0;
}
